package com.example.network.demos.tcp.utils;

import cn.hutool.core.lang.Snowflake;
import com.example.network.demos.tcp.domain.TCPMessage;

public class ParseUtils {

    public static TCPMessage parse(TCPMessage tcpMessage){
        Snowflake snowflake = new Snowflake(1, 1);
        String id = snowflake.nextIdStr();
        tcpMessage.setId(id);
        return tcpMessage;
    }

}
